#!/bin/bash
KEY=$1
MOD=$2

#find . | xargs grep -isl "$KEY" | sed /~$/d | xargs sed -i "s/\<$KEY\>/user_$MOD/g"

#find . | xargs grep -isl "user_" | sed /~$/d | xargs sed -i 's/\<cmd_[0-9][0-9]\>/cmd_0/g'

#find . | xargs grep -isl "plc_00" | sed /~$/d | xargs sed -i '/\<plc_00[0-9][0-9]\>/s/plc_00/plc_000/g'
find . | xargs grep -isl "serve_" | sed /~$/d | xargs sed -i '/\<serve_[0-9]\>/s/serve_/serve_00/g'
